﻿using System;
using DevExpress.XtraEditors;

namespace PTTB.PL
{
    public partial class frmLogin : XtraForm
    {
        public frmLogin()
        {
            InitializeComponent();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            string nguoidung = txtNguoiDung.Text.Trim();
            string matkhau = txtMatKhau.Text.Trim();
            txtNguoiDung.Text = nguoidung;
            txtMatKhau.Text = matkhau;
            dxValid.SetValidationRule(txtNguoiDung, funtion.ValidIsNotBlank(vxr.ChuaNhapThongTinNay));
            dxValid.SetValidationRule(txtMatKhau, funtion.ValidIsNotBlank(vxr.ChuaNhapThongTinNay));
            if (dxValid.Validate())
            {
                
            }
        }

        private void frmLogin_Load(object sender, EventArgs e)
        {
            
        }
    }
}